// pages/pay/pay.js
Page({
    data:{
        pictureLink: [
            {
            picture:'/images/格子衬衫.jpg',
            intro:'浅蓝色高腰微喇叭牛仔裤',
            price:'99',
            categoryId:'',
            }
        ],
    },
    jumpOrder(){
        wx.reLaunch({
          url: '/pages/orderList/orderList',
        })
    },
    jumpIndex(){
        wx.reLaunch({
          url: '/pages/index/index',
        })
    },
    queryRecommend() {
        var that = this;
          wx.request({
              url: 'http://localhost:8080/recommend/search',
              method:'POST',
              header:{
                  'content-type':'application/json'
              },
              success:function(res) {
                  console.log(res);
                  that.setData({
                      pictureLink:res.data.data,
                  });
              },
              fail:function() {
                  console.log("失败");
              }
          })
      },
      onShow(){
          this.queryRecommend();
      }
})